const mongoose=require('mongoose');
var mongoosePaginate=require('mongoose-paginate');

var schema=new mongoose.Schema({
    name:String,
    price:Number,
    desc:String,
    cateId:mongoose.Schema.ObjectId
});

schema.plugin(mongoosePaginate);
module.exports=mongoose.model('Product',schema,'product');